//
//  NSDate+Extension.swift
//  weiboSina
//
//  Created by admin on 16/1/4.
//  Copyright © 2016年 admin. All rights reserved.
//

import Foundation
extension NSDate {


    class func sinaDate(string:String) -> NSDate? {
        
        let dt = NSDateFormatter()
        
        dt.dateFormat = "EEE MMM dd HH:mm:ss z yyyy"
        dt.locale = NSLocale(localeIdentifier: "en_US")
        let result = dt.dateFromString(string)
        
        return result
    }
    

}